package phi.engine.actors
{
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Dynamics.b2Body;
	
	import flash.geom.Point;
	
	import phi.engine.utils.PhiMathUtil;

	public class ActorOptions
	{
		public var size :Point = new Point();
		public var startPosition :Point = new Point();
		public var startAngle :Number = 0;
		public var velocity :b2Vec2 = new b2Vec2();
		public var bodyType :uint = b2Body.STATIC_BODY;
		public var fixRotation :Boolean = false;
		
		public function ActorOptions()
		{
		}
		
		public function get startPositionToMeters():Point
		{
			return new Point( PhiMathUtil.pixelsToMeters( startPosition.x ),PhiMathUtil.pixelsToMeters(  startPosition.y ))
		}
		
		public function get sizeInMeters():Point
		{
			return new Point( PhiMathUtil.pixelsToMeters( size.x ), PhiMathUtil.pixelsToMeters( size.y ) ); 
		}
	}
}